package cn.caixiong.org.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Id;
import javax.persistence.Table;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "t_employee")
public class Employee {
    @Id
    private Long id;
    //登录帐号
    private String username;
    //邮箱
    private String email;
    //手机号
    private String phone;
    //登录密码
    private String password;
    //年龄
    private Integer age;
    //1待审核；2审核通过；3激活成功；4审核驳回（关闭)
    private Integer state;
    //关联的部门ID
    private Long departmentId;
    //关联的登录信息ID
    private Long logininfoId;
    //关联的店铺ID
    private Long shopId;
    //员工的上级ID
    private Long parentId;
    //员工的上级经理ID
    private Long managerId;
}
